package cn.software.entity.vo;

public class TopicVo {
    private Integer id;
    private Integer type; //类型编号
    private String typeName; //类型名
    private String content; //题目内容
    private String answer; // 题目答案
    private String[] option; //题目选项
    private Integer score; // 题目分数
    private SubjectVo subjectVo; // 题目对应的科目

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String[] getOption() {
        return option;
    }

    public void setOption(String option) {
        if(option == null) {
            this.option = null;
        } else {
            this.option = option.split(" ");
        }

    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public SubjectVo getSubjectVo() {
        return subjectVo;
    }

    public void setSubjectVo(SubjectVo subjectVo) {
        this.subjectVo = subjectVo;
    }


}
